<?php
namespace app\common\validate;
use think\Validate;
class UserBuy extends Validate
{
    protected $rule    = [
        'money' => 'require|float',
        'user_id' => 'require|integer',
        'shop_product_ids' => 'require',
    ];
    protected $message = [
        'money.require' => '金额不能为空',
        'money.float' => '请输入正确的金额',
    ];
}
